/*
 * 23/10/2011 - 19:29
 */
package org.nettyflux.netmessages;

/**
 * @author Victor Williams Stafusa da Silva
 */
public class Ack<E extends NetworkMessage> implements NetworkMessage {

    private final E sourceRequest;

    public Ack(E sourceRequest) {
        this.sourceRequest = sourceRequest;
    }

    public static <E extends NetworkMessage> Ack<E> create(E failedRequest) {
        return new Ack<E>(failedRequest);
    }

    public E getSourceRequest() {
        return sourceRequest;
    }
}
